package com.wang.system.service.system.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wang.entity.model.SysTenantModel;
import com.wang.entity.system.SysTenant;
import com.wang.entity.vo.SysTenantVo;
import com.wang.system.mapper.SysTenantMapper;
import com.wang.system.service.system.SysTenantService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author wang
 * @Date 2024/9/22 21:59
 * @PackageName:com.wang.system.service.system.impl
 * @ClassName: SysTenantServiceImpl
 * @Description: TODO
 * @Version 1.0
 */
@Service
@Transactional
@RequiredArgsConstructor
public class SysTenantServiceImpl extends ServiceImpl<SysTenantMapper, SysTenant> implements SysTenantService {

    private final SysTenantMapper sysTenantMapper;
    @Override
    public IPage<SysTenantVo> queryPageList(SysTenantModel sysTenantModel,Page<SysTenantVo> page) {
        return sysTenantMapper.queryPageList(sysTenantModel,page);
    }

    @Override
    public IPage<SysTenantVo> queryRecycleList(SysTenantModel sysTenantModel, Page<SysTenantVo> page) {
        return sysTenantMapper.queryRecycleList(sysTenantModel, page);
    }

    @Override
    public SysTenant getRecycleById(Long tenantId) {
        return sysTenantMapper.getRecycleById(tenantId);
    }

    @Override
    public void updateRecycleById(SysTenant tenant) {
        sysTenantMapper.updateRecycleById(tenant);
    }


}
